-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorporate Bioconductor recommendations #164
Conversation
if( add.expl.var && is.null(expl.var) ){ | ||
eigen_vals <- attr(reduced_dim, "eig") | ||
# Convert to explained variance and take only first two components | ||
expl_var <- eigen_vals / sum(eigen_vals) | ||
expl_var <- expl_var[seq_len(ncomponents)]*100 | ||
expl_var <- summary(rda)$concont$importance*100 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed a bug. First of all, the user can specify explained variance to be plotted with expl.var
. That is why it must be NULL in line 547. Moreover, I removed line 561 as it overwrote the calculated variance.
I went through this PR, and apart from the bug fix described above, this does not change the functionality. It just fixes the coding style. |
This PR incorporates Bioconductor recommendations for coding practice. It does not modify the functionality.